/*
 * @Date: 2022-11-29 11:53:49
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-11-29 11:58:28
 * @FilePath: \vue-admin-ts\src\hooks\usePageSearch\index.ts
 * @Description: usePageSearch
 */
import { ref } from "vue";
import pageContent from "@/views/main/system/components/pageContent/index.vue";
export const usePageSearch = () => {
  const pageContentRef = ref<InstanceType<typeof pageContent>>();
  const search = (formData: any) => {
    pageContentRef.value?.getData(formData);
  };
  const reset = () => {
    pageContentRef.value?.getData();
  };
  return [pageContentRef, search, reset];
};
